package com.liujun.spring4.demo.aop.application.event;

import org.springframework.context.ApplicationListener;

/**
 * @author liujun
 * @version 0.0.1
 * @date 2018/09/15
 */
public class MailSendListener implements ApplicationListener<MailSendEvent> {

  @Override
  public void onApplicationEvent(MailSendEvent event) {

    System.out.println("MailSendListener : 向" + event.getTo() + "发送完一封邮件");
  }
}
